package com.lightningtrade.mapper;

import com.lightningtrade.domain.RecommendedCarousel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RecommendedCarouselMapper {

    int insertRecommendedCarousel(@Param("carousel") RecommendedCarousel carousel);

    int updateRecommendedCarousel(@Param("carousel") RecommendedCarousel carousel);

    int deleteRecommendedCarouselById(@Param("id") int id);

    RecommendedCarousel selectRecommendedCarouselById(@Param("id") int id);

    List<RecommendedCarousel> selectAllRecommendedCarousels();
}
